package com.xqls.dal.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xqls.dal.dao.AlarmDao;
import com.xqls.dal.model.Alarm;
import com.xqls.dal.model.AlarmExample;
import com.xqls.dal.service.AlarmMapper;
@Repository
public class AlarmDaoImpl implements AlarmDao {
	@Autowired
	private AlarmMapper mapper;
	@Override
	public int insert(Alarm alarm) {
		return mapper.insert(alarm);
	}
	@Override
	public int updateAlarmStatus(Map<String, Object> map) {
		return mapper.updateAlarmStatus(map);
	}
	@Override
	public Map<String, Object> selectMinTime(Map<String, Object> map) {
		return mapper.selectMinTime(map);
	}
	@Override
	public List<Map<String, Object>> selStatusAlarm(Map<String, Object> map) {
		return mapper.selStatusAlarm(map);
	}
	@Override
	public List<Alarm> getAlarmByExample(AlarmExample example) {
		return mapper.selectByExample(example);
	}
	@Override
	public int updateAlarmData(Alarm alarm) {
		return mapper.updateAlarmData(alarm);
	}

}
